<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>优惠列表</title>
<link rel="stylesheet" type="text/css" href="../img/base.css">
<script language="javascript" src="/img/jquery.js"></script>
<script language="javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	function selectAll(){
		var tof = $('#all_number').attr('checked');
		if(tof) $("input[name='number[]']:checkbox").attr('checked','checked');
		else $("input[name='number[]']:checkbox").attr('checked','');
	}
	
	function checkform(){
		var batch = $("#batch_id").val();
		if(batch > 0){
			return true;
		}else{
			alert('请选择批次');
			return false;	
		}
		
	}
	
	
	function number_verify(){
		$('#op').val('verify');
	}
	
	function number_disverify(){
		$('#op').val('disverify');
	}
	
</script>
</head>
<body leftmargin="8" topmargin="8" background='../img/allbg.gif'>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td align='center' valign='top'>
        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
            	<tr>
                	<td height="28" background="../img/tbg.gif">
                    <div style="float:right;padding-right:6px;">
                    <a href='verify_coupon.php' class='np coolbg'>返回</a> &nbsp;&nbsp;
                    </div>
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
			<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
				<tr>
    				<td height="26" background="../img/tbg.gif">
                    <form action="" method="post" onsubmit="return checkform();">
    					<table width="98%" border="0" cellspacing="2" cellpadding="0">
                            <tr>
                            	<td>批次：</td>
     							<td>
                                	<select id="batch_id" name="batch_id">
                                    	<option value="0">请选择</option>
                                    	<{foreach from=$coupon_batch_list item=batch}>
                                    	<option value="<{$batch.batch_id}>" <{if $batch.batch_id == $batch_id}>selected="selected"<{/if}>><{$batch.batch_name}></option>
                                    	<{/foreach}>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                            	<td colspan="4" align="center">
                                	<input type="hidden" id="op" name="op" value="" />
                                	<input type='submit' class="coolbg np" value='审核通过' onClick="number_verify()" />&nbsp;&nbsp;
                        			<input type='submit' class="coolbg np" value='审核不通过' onClick="number_disverify()" />&nbsp;&nbsp;
                                   
                                </td>
                            </tr>
    					</table>
                    </form>
    				</td>
    			</tr>
 			</table>
		  <table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">

                <!--<tr align="right" bgcolor="#EEF4EA">
                	<td height="20" colspan="9" align="center"></td>
                </tr>-->
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                	<td height="4"></td>
              </tr>
                <tr bgcolor="#FFFFFF">
                	<td height="26"></td>
                </tr>
				<tr>
					<td colspan="2" height="4"></td>
				</tr>
		  </table>
		</td>
	</tr>
</table>
</body>
</html>